2020-2021 Sunseeker Telemetry and Lighting System
ctsd16_ex5_threeChSingleConv.c File Reference
#include "inc/hw_memmap.h"
#include "wdt_a.h"
#include "gpio.h"
#include "ctsd16.h"

Go to the source code of this file.

Macros

#define Num_of_Channels   3
 

Functions

void main (void)
 
void CTSD16_ISR (void)
 

Variables

uint32_t Chresults [Num_of_Channels]
 
uint8_t i = 0
 
uint8_t channels [Num_of_Channels] = {CTSD16_INPUT_CH9, CTSD16_INPUT_CH11, CTSD16_INPUT_CH13}
 

Macro Definition Documentation

◆ Num_of_Channels

#define Num_of_Channels   3

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • CTSD16 peripheral
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • CTSD16_VECTOR

Definition at line 81 of file ctsd16_ex5_threeChSingleConv.c.

Function Documentation

◆ CTSD16_ISR()

void CTSD16_ISR ( void  )

Definition at line 134 of file ctsd16_ex5_threeChSingleConv.c.

References __bic_SR_register_on_exit(), Chresults, and i.

◆ main()

void main ( void  )

Variable Documentation

◆ channels

uint8_t channels[Num_of_Channels] = {CTSD16_INPUT_CH9, CTSD16_INPUT_CH11, CTSD16_INPUT_CH13}

Definition at line 86 of file ctsd16_ex5_threeChSingleConv.c.

Referenced by main().

◆ Chresults

uint32_t Chresults[Num_of_Channels]

Definition at line 84 of file ctsd16_ex5_threeChSingleConv.c.

Referenced by CTSD16_ISR().

◆ i

uint8_t i = 0

Definition at line 85 of file ctsd16_ex5_threeChSingleConv.c.

Referenced by CTSD16_ISR(), delay(), main(), and setup_DMA().